@echo off
set hdc=hdc

for /f %%i in ('%hdc% list targets') do (
    %hdc% -t %%i shell mount -o rw,remount /
    for %%m in (*.so) do (
        %hdc% -t %%i file send %%m /system/lib
    )
    %hdc% -t %%i shell reboot
)